/* eslint-disable no-unused-vars */

// 路由对象模块
import Vue from 'vue'
import Vuerouter from 'vue-router'
import Msite from '../pages/Msite.vue'
import Shujia from '../pages/shelf'
import Category from '../pages/Category.vue'
import Wode from '../pages/Wode.vue'
import Login from '../components/Login'
import Search from '../components/search'
import Bookinfo from '../components/Book/Bookinfo'

Vue.use(Vuerouter)

export default new Vuerouter({
  // 所有路由
  routes: [
    {
      path: '/msite',
      component: Msite,
      meta: {
        show: true
      }
    }, {
      path: '/category',
      component: Category,
      meta: {
        show: true
      }
    }, {
      path: '/shujia',
      component: Shujia,
      meta: {
        show: true
      }
    }, {
      path: '/wode',
      component: Wode,
      meta: {
        show: true
      }
    },
    {
      path: '/login',
      component: Login
    },
    {
      path: '/search/',
      component: Search
    },
    {
      path: '/bookinfo/:id',
      component: Bookinfo
    },
    {
      path: '/',
      redirect: '/msite'
    }
  ]
})
